/*****************************************************************************
 *
 *                      HUSONG PROPRIETARY INFORMATION
 *
 *          The information contained herein is proprietary to HUSONG
 *           and shall not be reproduced or disclosed in whole or in part
 *                    or used for any design or manufacture
 *              without direct written authorization from HUSONG.
 *
 *            Copyright (c) 2015 by HUSONG.  All rights reserved.
 *
 *****************************************************************************/
package com.husong.util;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Random;

/**
 * @author tony
 *
 * @date 2015年11月9日 下午1:58:40
 */
public class FlowUtil {
	static SimpleDateFormat format=new SimpleDateFormat("yyMMddHHmmss");
	/**
	 * 获取flowNo
	 * @return flowNo
	 * @author tony
	 * @date 2015年11月9日下午1:59:20
	 */
	public static String getFlowNo() {
		String date=format.format(new Date());
		Random random1=new Random();
		int randomNum1=random1.nextInt(1000);
		int randomNum2=random1.nextInt(1000);
		return date+randomNum1;
	}
}
